\documentclass[a4paper,12pt]{report}

%do wstawiania obrazków
\usepackage{graphicx}

%adresy URL
\usepackage{url}

%zakladki w pdf:
\usepackage[pdftex,bookmarks=true,colorlinks=true,linkcolor=black,urlcolor=black,citecolor=black]{hyperref}

% ustawienia strony 
% przeczytac plik w:
% D:\Projekty\Bachelor\info\wytyczneMagInz.pdf
% ustawienie marginesów
\oddsidemargin = 10pt
\textwidth = 450pt

\usepackage{color}
\usepackage[scriptsize,bf]{caption}
\usepackage{pdfpages}

%listing kodu
\usepackage{listings}
\definecolor{darkgray}{rgb}{0.95,0.95,0.95}
\lstset{ %
        language=Java,                % the language of the code
        basicstyle=\scriptsize,       % the size of the fonts that are used for the code
        numbers=left,                   % where to put the line-numbers
        numberstyle=\tiny,      % the size of the fonts that are used for the line-numbers
        numbersep=10pt,                  % how far the line-numbers are from the code
        showspaces=false,               % show spaces adding particular underscores
        showstringspaces=false,         % underline spaces within strings
        showtabs=false,                 % show tabs within strings adding particular underscores
        tabsize=2,                      % sets default tabsize to 2 spaces
        captionpos=b,                   % sets the caption-position to bottom
        breaklines=true,                % sets automatic line breaking
        breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
        backgroundcolor=\color{darkgray},
        xleftmargin=35pt}


%nagłówek i stopka
\usepackage{fancyhdr}

\pagestyle{fancyplain}
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}

\lhead{}
\chead{}
\rhead{\fancyplain{}{\textit{\leftmark}}}
\lfoot{}
\cfoot{\thepage}
\rfoot{}

%1,5 linii odstępu
\linespread{1,3}

\setlength{\parindent}{0mm} % ustawi rozmiar wciecia na poczatku kazdego akapitu na 0mm,
\setlength{\parskip}{4mm} %ustawi rozmiar odstepu pomiedzy kolejnymi akapitami na 4mm,

%numerowanie definicji
        \newtheorem {definition}{Definition}[chapter]%[section]
%numerowanie przykladow
        \newtheorem {example}{Example}[chapter]%[section]

%info dla pliku pdf
\pdfinfo{
   /Author (Zbyszko Natkanski)
   /Title  (Software Metrics for Predicting Faults)
   /Subject (Software Metrics for Predicting Faults)
   /Keywords (Master thesis, MSc, Master)
}

\usepackage{acronym}

\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}

 
%=======[BEGIN DOCUMENT]===========
\begin{document}

%========[!!!!!!!!!!!!!!!] ============> strona tytułowa [UNCOMMENT!]
\includepdf[pages={1}]{title-page.pdf}

%spis tresci
\tableofcontents

%------------------------------------------------------------
\newpage
\phantomsection \label{bib}
\addcontentsline{toc}{chapter}{Abstract}
\include{abstract}

%------------------------------------------------------------
%introduction - teza, cel i zakres pracy
\include{ch1-introduction}
%------------------------------------------------------------

%basic terms
\include{ch2-basic_terms}

%theory
\include{ch3-metrics-theory}
                
%practical
\include{ch4-metrics-tools}
\include{ch5-metrics-practical}

%conclusion
\include{ch6-summary}                
%------------------------------------------------------------
% bibliografia          
                \newpage
                \phantomsection \label{bib}
                \addcontentsline{toc}{chapter}{Bibliography}
                \include{bibliography}              
%------------------------------------------------------------
%spis rysunkow
                \newpage
                \phantomsection \label{listoffig}
                \addcontentsline{toc}{chapter}{List of Figures}
                \listoffigures
%------------------------------------------------------------
%spis tabel
                \newpage
                \phantomsection \label{listoftab}
                \addcontentsline{toc}{chapter}{List of Tables}
                \listoftables  
                
%------------------------------------------------------------
%skroty
                \newpage
                \phantomsection \label{acronyms2}
                \addcontentsline{toc}{chapter}{Acronyms}
                \include{acronyms}  
%------------------------------------------------------------
\end{document}